<template>
    <div class="swiper-container filmswiper">
            <div class="swiper-wrapper">
                <slot></slot>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>

          </div>
</template>

<script>

import Swiper from 'swiper'
import 'swiper/dist/css/swiper.css'

export default {
  mounted () {
    new Swiper('.filmswiper', {
      // direction: 'vertical'
      loop: true,
      // 如果需要分页器
      pagination: {
        el: '.swiper-pagination'
      }
    })
  }
}
</script>
